﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///GetCssProperty 的摘要说明
/// </summary>
public class GetCssProperty
{
	public static string Get(string s,string pro)
	{
        string str = s;
        if(!str.Contains(pro))
            return "";
        str = str.Substring(str.IndexOf(pro) + pro.Length + 1);
        str = str.Substring(0,str.IndexOf(";"));
        return str;
	}
    public static string GetImg(string s)
    {
        string str=s;
        string pro = "background-image:url('$path$";
        if (!str.Contains(pro))
            return "";
        str = str.Substring(str.IndexOf(pro) + pro.Length);
        str = str.Substring(0, str.IndexOf("');"));
        return str;
    }
}